﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "caculaer.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE


class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_caculate_clicked();

    void on_pushButton_import_clicked();

    void on_spinBox_row_valueChanged(int arg1);

    void on_spinBox_col_valueChanged(int arg1);

    void on_doubleSpinBox_dist_valueChanged(double arg1);

    void on_pushButton_clear_clicked();

    void on_spinBox_imgw_valueChanged(int arg1);

    void on_spinBox_imgh_valueChanged(int arg1);

    void on_radioButton_rpy_clicked();

    void on_radioButton_fourelem_clicked();

    void on_radioButton_matrix_clicked();

private:
    void initforms();
    void showresult();
    void updatesource(QString sour);

private:
    Ui::MainWindow *ui;
    Caculaer* cal;
    QString sourcepath;
    bool calfinished;

};
#endif // MAINWINDOW_H
